<h1>
	<?php echo $this->pageTitle; ?>
</h1>
<div id="normaltable">
	<table>
		<thead>
			<tr>
				<th>Surname</th>
				<th>Name</th>
				<th>Username</th>
				<th>Userrole</th>
				<th>E-mail</th>
				<th></th>
			</tr>
		</thead>
		<tbody>
			<?php 

			foreach($this->entries as $row) {

				echo "<tr><td>".$row->getSurname()."</td><td>".$row->getName()."</td><td>".$row->getUsername()."</td><td>".$row->getUserrole()."</td><td>".$row->getEmail()."</td><td>";

				echo "<a href=".$this->url(array(
						'userid'	=> $row->getId(),
						'controller' => 'user',
						'action'     => 'edit')).">Edit<a></td></tr>";
			}

			?>
		</tbody>
	</table>
</div>
